﻿// owner 蒋家伟

#pragma once

#include "IUnitTestManager.h"
#include "TemplateCommonUtils.h"
#include "StringUtils.h"

namespace jsdk
{
    template<typename UnitTestType>
    class UnitTestRegistrationAssistant
    {
    public:
        UnitTestRegistrationAssistant(const UnitTestFunction& fun)
        {
            IUnitTestManager::get().registerTestFunction(TemplateCommonUtils::getClassId<TemplateCommonUtils::Decay_t<UnitTestType>>(), fun);
        }
        ~UnitTestRegistrationAssistant() 
        {
        }
    };
}